<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <body>
        <ui:composition>

            <h:panelGroup rendered="#{!UsuarioController.logado}">

                <div id="login" class="boxed">

                    <div class="content">
                        <h:form  rendered="#{!UsuarioController.logado}" id="formLog">
                            <h2 class="title">Usuário</h2>


                            <h:outputLabel>Login:</h:outputLabel>
                            <h:inputText value="#{UsuarioController.usuario.usuario}" id="login" required="true" requiredMessage="Login Requerido" />
                            <h:outputLabel>Senha:</h:outputLabel>
                            <h:inputSecret value="#{UsuarioController.usuario.pass}" id="pass" required="true" requiredMessage="Senha Requerida" />

                            <h:commandButton styleClass="button" value="Logar" action="#{UsuarioController.logar}" id="logar" />
                        </h:form>
                        <h:form  rendered="#{!UsuarioController.logado}" id="formLog2">
                            <!--                            <h:commandLink value="Recuperar Senha" action="#" />-->
                            <br />
                            <h:commandLink value="Fazer Cadastro" action="#{PageManager.setPageProfessorCad}" />
                        </h:form>              

                    </div>

                </div>
            </h:panelGroup>

            <br />

        </ui:composition>
    </body>
</html>

